package com.cykj.service;


import com.cykj.dto.ResponseDTO;
import com.fasterxml.jackson.core.JsonProcessingException;

public interface GoodService {
    ResponseDTO getHotGoods() throws JsonProcessingException;
    ResponseDTO getHotGood(int id);
    ResponseDTO getHotGoodList(int pageNum,int pageSize);
    ResponseDTO getGoodClass();

    ResponseDTO getGoodClassType(String id);

    ResponseDTO getGoods(String id) throws JsonProcessingException;
 ResponseDTO goodToRedis();

    ResponseDTO reduceStorage(String id,String num);

    ResponseDTO addStorage(String id, String num);

    ResponseDTO generateOrder(String goodId, String userId, String payState, String buyCount, String isTimeOut);
}
